package com.bone.modules.message.event;


import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationEvent;

/**
 * @author :
 * @date : 2020/12/29 18:08
 * Description :
 */

@Slf4j
public class NoticeEvent extends ApplicationEvent {

    private String message;

    public NoticeEvent(String message) {
        super(message);
        this.message = message;
        log.info("add event success! message: {}", message);
    }

    public String getMessage() {
        return message;
    }
}
